<template name="app_store">
  <div class="modal fade" id="app-store" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">应用商店</h5>
          <button type="button" class="close" data-dismiss="modal">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body p-0" id="app-store-body" style="height: 80vh;">
          <div class="p-3">
            <div class="form-group">
              <label for="app-store-input">搜索</label>
              <input type="email" class="form-control" id="app-store-input" placeholder="输入应用名称">
              <small id="app-store-help" class="form-text text-muted">请输入应用名称以搜索应用</small>
            </div>
            <ul class="list-group">
              {{#each result in results}}
                {{> app_list_item result=result channelId=channel._id}}
              {{/each}}
              {{#if loading}}
                {{> loader_ball_beat}}
              {{/if}}
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>